package com.mysoft.gfyx.clue.controller;

import com.mysoft.framework.modeling.dataapi.DataApi;
import com.mysoft.framework.mvc.api.Controller;
import com.mysoft.framework.rpc.annotation.PubAction;
import com.mysoft.framework.rpc.annotation.PubService;
import com.mysoft.framework.rpc.contants.RequestPrefix;
import com.mysoft.gfyx.clue.service.UserService;
import com.mysoft.gfyx.common.util.LogUtil;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMethod;
import com.mysoft.framework.common.user.User;

@PubService(value = "/userDataApi", prefix = RequestPrefix.API)
@Tag(name = "用户-API")
public class UserDataApiController extends Controller implements DataApi {
    @Autowired
    private UserService userService;

    @Autowired
    private LogUtil logUtil;

    @Tag(name = "获取当前用户信息")
    @PubAction(value = "/userInfo", method = RequestMethod.GET)
    @ApiOperation(value = "/userInfo", notes = "获取当前用户信息")
    public User userInfo() {
        return userService.userInfo();
    }

}